package com.xhu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "emp_info")
@Accessors(chain = true)
public class EmpInfo {
    @TableId(value = "emp_id", type = IdType.NONE)
    private String empId;

    /**
     * 电话号码
     */
    @TableField(value = "phone_number")
    private String phoneNumber;

    /**
     * 居住地
     */
    @TableField(value = "home")
    private String home;

    /**
     * 部门编号
     */
    @TableField(value = "dept")
    private Integer dept;

    /**
     * 联系地址
     */
    @TableField(value = "contact_address")
    private String contactAddress;

    /**
     * 头像url
     */
    @TableField(value = "profile_photo_url")
    private String profilePhotoUrl;

    public static final String COL_EMP_ID = "emp_id";

    public static final String COL_PHONE_NUMBER = "phone_number";

    public static final String COL_HOME = "home";

    public static final String COL_DEPT = "dept";

    public static final String COL_CONTACT_ADDRESS = "contact_address";

    public static final String COL_PROFILE_PHOTO_URL = "profile_photo_url";
}